﻿
namespace IPS.SP2013.CustomLoginPage
{

    /// <summary>
    /// This class contains all required structs, enums and constants to be used by IPS.SP2013.CustomLoginPage
    /// </summary>
    public static class Constants
    {

        #region Enums

        /// <summary>
        /// Enum to indicate if the change is to set a custom or default login page
        /// </summary>
        public enum CustomPageType
        {
            Default = 0,
            Custom = 1
        }

        #endregion

        #region URL's

        /// <summary>
        /// Relative URL of the custom login page deployed with the solution
        /// NOTE: modify it to deploy your own custom login page
        /// </summary>
        public static readonly string URL_IPSLogin = "_layouts/15/IPS.SP2013.CustomLoginPage/IPSLogin.aspx";

        #endregion

        #region Resources

        /// <summary>
        /// Resource file name deployed with the solution
        /// NOTE: modify it if you deploy another Resource file
        /// </summary>
        public static readonly string Resource_File_Name = "IPS.SP2013.CustomLoginPage";
        /// <summary>
        /// Resource key related to the welcome message showed in the custom login page
        /// </summary>
        public static readonly string Resource_WelcomeMsg_Key = "WelcomeMessage";

        #endregion

        #region Cookies

        /// <summary>
        /// Start string to create the cookie name
        /// </summary>
        public static readonly string Cookie_IPS_Start = "IPS";
        /// <summary>
        /// Default hour duration of the generated cookies
        /// </summary>
        public static readonly double Cookie_Expiration_Hours = 8;
        /// <summary>
        /// Name of the persistent cookie generated by SharePoint when you
        /// check the "Remember Me" option
        /// </summary>
        public static readonly string Cookie_FedAuth_Name = "FedAuth";

        #endregion

        #region Controls

        /// <summary>
        /// Control ID for the "Remember Me" option in .aspx file
        /// </summary>
        public static readonly string Control_RememberMeId = "RememberMe";

        #endregion

    }

}
